package com.asset.dispoal.roleMenu;

import com.asset.dispoal.roleMenu.api.GbRoleMenuService;
import com.asset.dispoal.roleMenu.dto.GbRoleMenuRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tech.mhuang.pacebox.springboot.core.controller.BaseController;
import tech.mhuang.pacebox.springboot.protocol.Result;

/**
 * @author qr
 * @date 2022/3/3$
 */
@RestController
@RequestMapping("gb/roleMenu")
@Api(value = "角色菜单绑定", tags = "角色菜单绑定")
public class GbRoleMenuController extends BaseController {

    @Autowired
    private GbRoleMenuService gbRoleMenuService;

    @PostMapping(value = "/insert")
    @ApiOperation(value = "角色菜单绑定", notes = "角色菜单绑定0")
    public Result insert(@RequestBody GbRoleMenuRequest request) {
        gbRoleMenuService.insert(request);
        return Result.ok();
    }
}